package loja.view.editor.components.panel;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class PanelTitle extends JPanel {

	private static final long serialVersionUID = 1L;

	public PanelTitle() {
    	super();
    }

    @Override
    public void paintComponent(Graphics g) {

        Image center = new ImageIcon(getClass().getResource("/image/bar_center_white.png")).getImage();
        int x = 0;  
        
        while (x < this.getWidth()) {
            g.drawImage(center, x, 0, this);
            x = x + 1;
        }   

    }
            
}
